package com.magold.logic.polygon;

import org.andengine.extension.physics.box2d.PhysicsFactory;

import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.magold.context.IContext;

public class SmoothPrimitive extends PrimitiveLogic {
	private static FixtureDef sFixtureDef = PhysicsFactory.createFixtureDef(10.0f, 0, 0);
	private static Constants sConstants;
	public static void customize(Constants pConstants) {
		sConstants = pConstants;
	}
	
	public SmoothPrimitive(PrimitiveShape pShape, BodyType pType) {
		super(pShape, sConstants.mRegion.deepCopy(), pType);
	}
	
	@Override
	protected FixtureDef getFixtureDef() {
		return sFixtureDef;
	}

	@Override
	protected IContext getContext() {
		return sConstants.mContext;
	}

}
